{include file="public/layout" /}
<script type="text/javascript" src="__PUBLIC__/plugins/laydate/laydate.js"></script>

{eq name="$editor.editor_select" value="1"}
    {load href="__PUBLIC__/plugins/Ueditor/ueditor.config.js" /}
    {load href="__PUBLIC__/plugins/Ueditor/ueditor.all.min.js" /}
    {load href="__PUBLIC__/plugins/Ueditor/lang/zh-cn/zh-cn.js" /}
{else/}
    {load href="__PUBLIC__/plugins/ckeditor/ckeditor.js" /}
{/eq}

<body class="bodystyle" style="overflow-y: scroll;min-width:auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-10" style="box-shadow:none;">
    <form class="form-horizontal" id="post_form">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit"><label>菜单状态</label></dt>
                <dd class="opt">
                    <label class="curpoin"><input type="radio" name="status" value="1" {eq name="$navigList.status" value="1"}checked="checked"{/eq}>启用</label>&nbsp;
                    <label class="curpoin"><input type="radio" name="status" value="0" {eq name="$navigList.status" value="0"}checked="checked"{/eq}>禁用</label>
                    <p class="notic">隐藏之后，不显示在前台页面</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit"><label for="nav_name"><em>*</em>菜单名称</label></dt>
                <dd class="opt">
                    <input type="text" name="nav_name" id="nav_name" value="{$navigList.nav_name}" class="input-txt">
                    <p class="notic">保持唯一性，不可重复</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit"><label for="parent_id">所属菜单</label></dt>
                <dd class="opt">
                    {$navListHtml}
                    <p class="notic">如果选择上级菜单，那么新增的菜单则为被选择上级菜单的子菜单</p>
                </dd>
                <input type="hidden" name="topid" id="topid" value="{$topid}">
                <input type="hidden" name="parent_id" id="parent_id" value="{$nav_id}">
            </dl>

            <dl class="row">
                <dt class="tit"><label><em>*</em>菜单跳转链接</label></dt>
                <dd class="opt">
                    <span id="link_names">{$navigList.link_names}</span>
                    <input type="hidden" name="host_id" id="host_id" value="{$navigList.host_id}">
                    <input type="hidden" name="link_id" id="link_id" value="{$navigList.link_id}">
                    <a href="javascript:void(0);" id="menusHeaderLink" onclick="menusHeaderLink(this);" data-ad_host_id="{$navigList.host_id}" data-ad_link_id="{$navigList.link_id}">设置链接</a>
                    <p class="notic">保持唯一性，不可重复</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit"><label for="sort_order">菜单排序</label></dt>
                <dd class="opt">
                    <input type="text" name="sort_order" id="sort_order" value="{$navigList.sort_order}" class="input-txt">
                    <p class="notic">数字越大，排名越靠前，默认排序为创建时间。</p>
                </dd>
            </dl>
        </div>
        <div class="ncap-form-default">
            <input type="hidden" name="nav_id" id="nav_id" value="{$navigList.nav_id}">
            <input type="hidden" name="position_id" id="position_id" value="{$navigList.position_id}">
            <div class="bot"><a href="JavaScript:void(0);" onclick="submitForm('#post_form');" class="ncap-btn-big ncap-btn-green">保存</a></div>
        </div>
    </form>
</div>

<script type="text/javascript">
    var submitFormUrl = "{:url('Pc/menus_edit', ['_ajax'=>1])}";
</script>
<script type="text/javascript" src="__SKIN__/js/admin_menus.js?v={$version}"></script>

{include file="public/footer" /}